import axios from '../utils/request.js'
import qs from 'qs'//引入qs


export function save(fun) {
	return axios.post('/sys/function/save', fun);
}

export function deleteById(id) {
	return axios.delete('/sys/function/' + id);
}


export function enableSave(fun) {
	return axios.post('/sys/function/enable/save', fun);
}

export function findById(id) {
	return axios.get('/sys/function/' + id);
}

export function menuList(params) {
	return axios.get('/sys/function/list?' + qs.stringify(params));
}

